package com.usian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.pojo.User;
import com.usian.query.UserDto;
import com.usian.utils.PageResult;

import java.util.List;

public interface UserService extends IService<User> {

    public List<User> findAll();

    public User findById(Integer id);

    public PageResult<User> findPage(UserDto dto);

    public boolean saveUser(User user);

    public boolean updateUser(User user);

    public boolean deleteById(Integer id);

    public User login(User user);
}
